<include file="Public/header"/>
<style>body {
    background: #f3f3f4;
}</style>
<div class="wrapper m-t">
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5 class="text-info"><i class="fa fa-list"></i> 工单列表</h5>
        </div>
        <div class="ibox-content">
            <div class="table-responsive">
                <table class="table table-striped table-hover">
                    <thead>
                    <tr>
                        <th>ID</th>
                        <th>标题</th>
                        <th>姓名</th>
                        <th>经销商</th>
                        <th>电话</th>
                        <th>日期</th>
                        <th>状态</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <volist name="_list" id="vo">
                        <tr>
                            <td>{$vo.wid}</td>
                            <td>{$vo.title}</td>
                            <td>{$vo.nickname}</td>
                            <td>{$vo.company_name}</td>
                            <td>{$vo.linktel}</td>
                            <td>{$vo.create_time|date='Y-m-d H:i:s',###}</td>
                            <td>
                                <if condition="$vo.status eq 0">
                                    <span class="text-danger">待处理</span>
                                    <elseif condition="$vo.status eq 1"/>
                                     <sapn class="text-info">处理中</sapn>
                                    <elseif condition="$vo.status eq 2"/>
                                     <span  class="text-success">已完成</span>
                                </if>
                            </td>
                            <td>
                                <a href="{:U('Works/workDetail',['wid'=>$vo[wid]])}">
                                    <button class="btn btn-info btn-xs">
                                        <i class="fa fa-eye"></i> 详情
                                    </button>
                                </a>
                                <a href=""></a>
                            </td>
                        </tr>
                    </volist>
                    </tbody>
                </table>
                <div class="page">{$_page}</div>
            </div>
        </div>
    </div>
</div>
<include file="Public/footer"/>